package com.gxa.autoparts.portal.mapper;

import com.gxa.autoparts.core.pojo.Coupon;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CheckMyCouponMapper extends Mapper<Coupon> {
    List<Coupon> unusedCouponList(Long id);
    List<Coupon> usedCouponList(Long id);
    List<Coupon> expiredCouponList(Long id);

    /**
     * 用户未领取与已领取的券
     * @auth looker
     * @param userId
     * @return
     */
    List<Coupon> getNotGetCoupon(Long userId);
    List<Coupon> getedCoupon(Long userId);
}
